﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/BackSite.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    操作日志维护
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TablePlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    <div id="title">
        <span class="font16 fLeft" style="font-size: 26px"><strong>操作日志维护</strong></span><span class="fRight mR10 mT08"></span>
    </div>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    业务名称：<select id="Select3" name="D1">
        <option>井的管理</option>
        <option>人员管理</option>
        <option>登录管理</option>
    </select> 操作人：<input id="Text3" type="text" value="张三" /> 操作类型：<select id="Select1" name="D2">
        <option>不限</option>
        <option>删除</option>
        <option>添加</option>
        <option>更新</option>
    </select>
    <br />
    操作时间：<input id="Text2" type="text" />--<input id="Text4" type="text" />
    <input id="Button1" style="text-align: right" type="button" value="查询" />
    <input id="Button4" type="button" value="删除" />
    <input id="Button5" type="button" value="备份" />
    <input id="Button2" type="button" value="导出到Excel" />
    <br />
    <input id="Checkbox1" type="checkbox" />自动刷新-每隔<select id="Select2" name="D3">
        <option>10</option>
        <option>30</option>
        <option>60</option>
    </select>秒 
    <input id="Button3" type="button" value="手动刷新" /> 
        <script type="text/javascript">
            Ext.onReady(function () {
                Ext.create('Ext.data.Store', {
                    storeId: 'simpsonsStore',
                    fields: ['active', 'id', 'datetime', 'table', 'user', 'ip', 'BusinessesName', 'act_type', 'access_content'],
                    data: {
                        'items': [
                            { active: true, 'id': '1', "datetime": "2014-8-25 19:49:34", 'table': 'LogOperation', "user": "张一", "ip": "110.16.0.0/14", 'BusinessesName': "查看注水井曲线", 'act_type': "登录", "access_content": "登录页面" },
                            { active: true, 'id': '2', "datetime": "2014-8-25 19:49:34", "user": "张二", "ip": "110.52.0.0/15", "access_content": "修改密码页面" },
                            { active: true, 'id': '3', "datetime": "2014-8-25 19:49:34", "user": "张三", "ip": "110.6.0.0/15", "access_content": "登录页面" },
                            { active: true, 'id': '4', "datetime": "2014-8-25 19:49:34", "user": "张四", "ip": "110.72.0.0/15", "access_content": "修改密码页面" },
                            { active: true, 'id': '5', "datetime": "2014-8-25 19:49:34", "user": "张五", "ip": "112.109.128.0/17", "access_content": "登录页面" },
                            { active: true, 'id': '6', "datetime": "2014-8-25 19:49:34", "user": "张六", "ip": "112.111.0.0/16", "access_content": "修改密码页面" },
                            { active: true, 'id': '7', "datetime": "2014-8-25 19:49:34", "user": "张七", "ip": "112.122.0.0/15", "access_content": "登录页面" },
                            { active: true, 'id': '8', "datetime": "2014-8-25 19:49:34", "user": "张八", "ip": "112.132.0.0/16", "access_content": "修改密码页面" },
                            { active: true, 'id': '9', "datetime": "2014-8-25 19:49:34", "user": "张九", "ip": "112.192.0.0/14", "access_content": "登录页面" },
                            { active: true, 'id': '10', "datetime": "2014-8-25 19:49:34", "user": "李一", "ip": "112.224.0.0/11", "access_content": "修改密码页面" },
                            { active: true, 'id': '11', "datetime": "2014-8-25 19:49:34", "user": "李二", "ip": "112.64.0.0/15", "access_content": "登录页面" },
                            { active: true, 'id': '12', "datetime": "2014-8-25 19:49:34", "user": "李三", "ip": "112.80.0.0/13", "access_content": "修改密码页面" },
                            { active: true, 'id': '13', "datetime": "2014-8-25 19:49:34", "user": "李四", "ip": "112.88.0.0/13", "access_content": "登录页面" },
                            { active: true, 'id': '14', "datetime": "2014-8-25 19:49:34", "user": "李五", "ip": "112.96.0.0/15", "access_content": "修改密码页面" },
                            { active: true, 'id': '15', "datetime": "2014-8-25 19:49:34", "user": "李六", "ip": "113.0.0.0/13", "access_content": "登录页面" },
                            { active: true, 'id': '16', "datetime": "2014-8-25 19:49:34", "user": "李七", "ip": "113.194.0.0/15", "access_content": "修改密码页面" },
                            { active: true, 'id': '17', "datetime": "2014-8-25 19:49:34", "user": "李八", "ip": "113.200.0.0/15", "access_content": "登录页面" },
                            { active: true, 'id': '18', "datetime": "2014-8-25 19:49:34", "user": "李九", "ip": "113.204.0.0/14", "access_content": "修改密码页面" },
                            { active: true, 'id': '19', "datetime": "2014-8-25 19:49:34", "user": "赵一", "ip": "113.224.0.0/12", "access_content": "登录页面" },
                            { active: true, 'id': '20', "datetime": "2014-8-25 19:49:34", "user": "赵二", "ip": "113.56.0.0/15", "access_content": "修改密码页面" },
                        ]
                    },
                    proxy: {
                        type: 'memory',
                        reader: {
                            type: 'json',
                            root: 'items'
                        }
                    }
                });

                Ext.create('Ext.grid.Panel', {
                    title: '日志管理',
                    store: Ext.data.StoreManager.lookup('simpsonsStore'),
                    columns: [
                        { xtype: 'checkcolumn', text: '选择', dataIndex: 'active', width: 100 },
                        { text: '序号', dataIndex: 'id', width: 100 },
                        { text: '操作时间', dataIndex: 'datetime', width: 150 },
                        { text: '表名', dataIndex: 'table' },
                        { text: '业务模块', dataIndex: 'BusinessesName' },
                        { text: '操作人', dataIndex: 'user' },
                        { text: 'IP地址', dataIndex: 'ip' },
                        { text: '操作类型', dataIndex: 'act_type' },
                        { text: '操作', dataIndex: 'access_content', flex: 1 }
                    ],
                    height: 403,
                    width: 1090,
                    renderTo: "grid"
                });
            });
    </script>
    <div id="grid"/>

</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="TableHeadPlaceHolder" runat="server">
</asp:Content>
